#include "stubs_asm.h"

NHSTUB(SleepTask, 0xffc19890)
NHSTUB(CreateTask, 0xffc0baf0)
NHSTUB(ExitTask, 0xffc0bd80)
NHSTUB(AllocateMemory, 0xffde6eac)
NHSTUB(ExecuteEventProcedure, 0xffc0c1a8)
NHSTUB(FreeMemory, 0xffde6e98)
//NHSTUB(GetCurrentTargetDistance, 0xffd01e10)
NHSTUB(GetSystemTime, 0xffde6fb4)
NHSTUB(memcmp, 0xffc0e820)
NHSTUB(memcpy, 0xffc73a9c)
NHSTUB(memset, 0xffe1de08)
NHSTUB(Close, 0xffc14f20)
NHSTUB(Open, 0xffc14ef8)
NHSTUB(Read, 0xffc0a378)
NHSTUB(Write, 0xffc14fcc)
NHSTUB(Lseek, 0xffc15060)
NHSTUB(strcmp, 0xffc0e7b8)
NHSTUB(strcpy, 0xffc0e764)
NHSTUB(strlen, 0xffc0e7fc)
NHSTUB(TakeSemaphore, 0xffc0b98c)
NHSTUB(vsprintf, 0xffc0e6e4)
//NHSTUB(GetFocusLensSubjectDistance, 0xffd03270)
NHSTUB(GetZoomLensCurrentPoint, 0xffd07444)
NHSTUB(GetZoomLensCurrentPosition, 0xffd07fc4)
NHSTUB(RefreshPhysicalScreen, 0xffd6f958)
NHSTUB(GetPropertyCase, 0xffc5aecc)
NHSTUB(VbattGet, 0xffc1189c)
NHSTUB(kbd_read_keys, 0xffc12fc0)
NHSTUB(kbd_p1_f, 0xffc130c4)
NHSTUB(kbd_p1_f_cont, 0xffc130d0)
NHSTUB(kbd_p2_f, 0xffc12910)
NHSTUB(kbd_pwr_on, 0xFFC37C24)
NHSTUB(kbd_pwr_off, 0xFFC37C7C)
NHSTUB(kbd_read_keys_r2, 0xffc3764c)
NHSTUB(mkdir, 0xffc152c4)
NHSTUB(GetParameterData, 0xffd21934)
NHSTUB(SetParameterData, 0xffd21810)
NHSTUB(IsStrobeChargeCompleted, 0xffc999c0)
NHSTUB(open, 0xffc0a0e0)
NHSTUB(write, 0xffc0a3d8)
NHSTUB(close, 0xffc0a190)
NHSTUB(lseek, 0xffc15060)
NHSTUB(read, 0xffc0a378)
NHSTUB(Fopen_Fut, 0xffc148c4)
NHSTUB(Fwrite_Fut, 0xffc14a04)
NHSTUB(Fclose_Fut, 0xffc14904)
NHSTUB(Fread_Fut, 0xffc149b0)
NHSTUB(Fseek_Fut, 0xffc14aa4)
NHSTUB(Remove, 0xffc14f68)
NHSTUB(rename, 0xffc14ff4)
NHSTUB(GetDrive_ClusterSize, 0xffc40084)
NHSTUB(GetDrive_TotalClusters, 0xffc400b8)
NHSTUB(GetDrive_FreeClusters, 0xffc40124)
NHSTUB(LockMainPower, 0xffc5d20c)
NHSTUB(UnlockMainPower, 0xffc5d160)
NHSTUB(GetCurrentAvValue, 0xffd03f7c)
NHSTUB(MoveFocusLensToDistance, 0xffdb4cbc)
NHSTUB(MoveZoomLensWithPoint, 0xffd07ef0)
NHSTUB(_log, 0xffe4ba40)
NHSTUB(_log10, 0xffe4a984)
NHSTUB(_pow, 0xffe4aaf4)
NHSTUB(_sqrt, 0xffe4cda8)
NHSTUB(malloc, 0xffc039dc)
NHSTUB(free, 0xffc03ab0)
NHSTUB(FreeUncacheableMemory, 0xffc19a3c)
NHSTUB(AllocateUncacheableMemory, 0xffc19a08)
NHSTUB(rand, 0xffc0e928)
NHSTUB(srand, 0xffc0e91c)
NHSTUB(stat, 0xffc1512c)
NHSTUB(openfastdir, 0xffdd05ac)
NHSTUB(readfastdir, 0xffdd0640)
NHSTUB(closefastdir, 0xffdd0710)
NHSTUB(qsort, 0xffd702a8)
NHSTUB(strncpy, 0xffc0e77c)
NHSTUB(strrchr, 0xffc73a74)
NHSTUB(strncmp, 0xffc73a04)
NHSTUB(strchr, 0xffc73a50)
NHSTUB(strcat, 0xffc739c8)
NHSTUB(strtol, 0xffc1fe0c)
NHSTUB(time, 0xffc571ac)
NHSTUB(LocalTime, 0xffc572f8)
NHSTUB(UpdateMBROnFlash, 0xffc3fe4c)
NHSTUB(opendir, 0xffdd05ac)
NHSTUB(ReadFastDir, 0xffdd0640)
NHSTUB(closedir, 0xffdd0710)
NHSTUB(UnsetZoomForMovie, 0xFFD278C0)

NHSTUB(ints_disable                           ,0xFFC00578)
NHSTUB(ints_enable                            ,0xFFC005A0)
NHSTUB(TurnOnMic, 0xFFC38288)
NHSTUB(TurnOffMic, 0xFFC382B4)

NHSTUB(ExpCtrlTool_StopContiAE,  0xFFC24410) 
NHSTUB(ExpCtrlTool_StartContiAE, 0xFFC24250) 
NHSTUB(MakeAFScan,  0xFFDE3A8C) 
NHSTUB(SetAE_ShutterSpeed, 0xFFDB7018) 


// null stubs

NHSTUB(utime, 0xFFC00958)
NSTUB(taskLock, 0xFFC00958)
NSTUB(taskUnlock, 0xFFC00958)
NSTUB(Mount_FileSystem, 0xFFC00958)
NSTUB(Unmount_FileSystem, 0xFFC00958)
NSTUB(rewinddir, 0xFFC00958)
NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00958) 
NSTUB(CreatePhysicalVram,		 0xFFC00958)
NSTUB(CreateTaskStrict,			 0xFFC00958)
NSTUB(DisableDispatch,			 0xFFC00958)
NSTUB(DisplayImagePhysicalScreen,	 0xFFC00958)
NSTUB(EnableDispatch,			 0xFFC00958)
//NSTUB(GetFocusLensSubjectDistanceFromLens, 0xFFC00958)
NSTUB(MakeDirectory,			 0xFFC00958)
NSTUB(PhySw_testgpio,			 0xFFC00958)
NSTUB(ProtectFile,			 0xFFC00958)
NSTUB(chdir,				 0xFFC00958)
NSTUB(ioctl,				 0xFFC00958)
NSTUB(iosDevAdd,			 0xFFC00958)
NSTUB(iosDrvInstall,			 0xFFC00958)
NSTUB(isalpha,				 0xFFC00958)
NSTUB(isdigit,				 0xFFC00958)
NSTUB(islower,				 0xFFC00958)
NSTUB(isspace,				 0xFFC00958)
NSTUB(isupper,				 0xFFC00958)
NSTUB(localtime,			 0xFFC00958)
NSTUB(readdir,				 0xFFC00958)
NSTUB(strpbrk,				 0xFFC00958)
NSTUB(taskCreateHookAdd,		 0xFFC00958)
NSTUB(taskDeleteHookAdd,		 0xFFC00958)
NSTUB(taskIdListGet,			 0xFFC00958)
NSTUB(taskName,				 0xFFC00958)
NSTUB(taskResume,			 0xFFC00958)
NSTUB(taskSuspend,			 0xFFC00958)
NHSTUB(GetBatteryTemperature, 0xFFC39D34)
NHSTUB(GetCCDTemperature, 0xFFC39CC4)
NHSTUB(GetOpticalTemperature, 0xFFC39DA4)
NHSTUB(PT_PlaySound, 0xFFC521E0)


NHSTUB(EnterToCompensationEVF, 0xffc17108) 
NHSTUB(ExitFromCompensationEVF, 0xffc17158)
NHSTUB(DoAFLock, 0xffc16d94)
NHSTUB(UnlockAF, 0xffc16de4)
NHSTUB(SetScriptMode, 0xFFC5CFC0)
